package tau.pimpmyfreedb.common.types;


/**
 * the base class for all music related objects
 */
public abstract class MusicItem extends DataItemBase {
    private String extendedData;

    public MusicItem(int id, String name, String extendedData) {
	super(id, name);
	this.extendedData = extendedData;
    }
    
    public String getExtendedData() {
	if (extendedData == null)
	    return "";
	else
	    return extendedData;
    }
    @Override
    public boolean equals(Object arg0) {
	if (arg0 instanceof MusicItem){
	    MusicItem temp = (MusicItem)arg0;
	    return (this.getName().equals(temp.getName()) && (this.getDataId() == temp.getDataId()));
	}
        return super.equals(arg0);
    }
}
